<?php

require_once ('../../base/Upload.php');
require_once('../../base/Db.php');


//插入类别处理

$cateId = $_POST['cateId'];
$cateName = $_POST['cateName'];


$db = new Db();
$sql = "insert into product_cate(code,name) values";
$sql .= "('$cateId','$cateName')";
if($db->execute($sql)){
	echo "1:插入成功";
}
?>